new Vue({
    el: '#app',
    data() {
      return {
        template: [],
        selectOptionsOne:[],
        selectOptionsTwo: [
        { label: '选项二-1', value: 'option2-1' },
        { label: '选项二-2', value: 'option2-2' },
        // 更多选项...
      ],
      form: {
        selectOne: '',
        selectTwo: ''
      }
      }
    },
    mounted() {
     this.getTempalte()
    },
    computed:{
      
    },
    methods: {
    //   查询所有的模板
    getTempalte(){
    const _this = this;
      $.ajax({
        url: BASE_URL+'/weixin/getWxgTemplateMessage?token='+ $.cookie('token'),
        type: 'POST',
        data:{
          'AppId':'wx49faa81d6090e81d',
          'Appsecret':'5c771e562af5ab12a03614909852d972'
        },
        success: function (res) {
          console.log('模板',res[0].content)
          _this.template=res
        },
        error: function () {
          _this.$message.error("操作失败，请稍后再试")
        },
        complete: function (XMLHttpRequest) {
          if (XMLHttpRequest.getResponseHeader("REDIRECT") == "REDIRECT") {
            window.parent.document.location.href = "../../../" + XMLHttpRequest.getResponseHeader("CONTENTPATH");
          }
        }
      })
    }
     
    },
  })